import ScanResultEntry from '~/models/scan-result-entry';

export default class ScanResultEntryFlattened implements ScanResultEntry {
  readonly id: string;
  readonly completed: boolean;
  readonly succeeded: boolean | null;
  readonly duration: number;
  readonly threats: string[];

  constructor(id: string, completed: boolean, succeeded: boolean | null, duration: number, threats: string[]) {
    this.id = id;
    this.completed = completed;
    this.succeeded = succeeded;
    this.duration = duration;
    this.threats = threats;
  }


}
